import { NestFactory } from '@nestjs/core';
import { MicroUserModule } from './micro-user.module';
import { Transport } from '@nestjs/microservices';
import { join } from 'path';
import * as process from 'process';
async function bootstrap() {
  const app = await NestFactory.createMicroservice(MicroUserModule,{
    transport:Transport.GRPC,
    options:{
      package:'cyber.user.v1',
      protoPath:join(process.cwd(),'proto/user/user.proto'),
      url:'0.0.0.0:50052',
    }
  });
  await app.listen();
}
bootstrap();
